#include<stdio.h>
#include<stdlib.h>
int main(int argc,char** argv){
	if(argc==3)
   {
   	char* srcfile=argv[1];
    char* dstfile=argv[2];
	char c;
	FILE *fp1,*fp2;
	if((fp1=fopen(argv[1],"r+"))==NULL)
	return 1;
	if((fp2=fopen(argv[2],"w+"))==NULL)
	return 1;
    while(1)
    {
        c=fgetc(fp1);
        if(feof(fp1))
           break;
        fputc(c,fp2);
    }
	fclose(fp1);
	fclose(fp2);
   }
	return 0;
}

